home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wildcat Gold - The Optical BBS
/
Wildcat Gold - The Optical BBS (The Golden ROM Series)(Volume 4 Number 1)(The Digital Publishing Company)(1992).ISO
/
sdn
/
wf200_c.sdn
/
WF.016
< prev
next >
Wrap
Text File
|
1989-12-21
|
12KB
|
262 lines
.f3 - # - Chapter 16 - Printing & Formatting
.rm70
.mt5
.mb5
.pl66
.tc
.tc 16. PRINTING & FORMATTING .............................#
16. PRINTING & FORMATTING
Word Fugue uses several methods to format text:
■ Dot lines. These are special text lines that control most
formatting features.
■ Editing commands, including special font characters.
.tc Printing a File ....................................#
Printing a File
Any text file can be printed from within WordFugue. Files formatted
with WordFugue's page layout commands and font controls will print
with multiple fonts, headers, footers, and page breaks. Press Ctrl K
P to initiate background printing.
Do not press <Enter> on the first menu selection, Print file now,
until the other items in the box have been set to your satisfaction.
Selecting the first item starts the print job.
After you select the second menu item, Name of file, a prompt box will
request entry of the name of the file to print. When prompted for a
file name, you may enter DOS wildcards or the name of another drive or
subdirectory. In this case, another window will display the names of
all matching files. You can select from this list by using the cursor
keypad, or by pressing the first letter of the filename in which you
are interested.
If you wish to print a file that is currently loaded in memory, be
sure to save any recent changes to disk before trying to print it. If
you attempt to print a file that has unsaved changes, WordFugue will
produce an error message.
Set Auto formatting OFF if you wish to have WordFugue ignore
formatting commands (. commands) in your text. In this case, text will
print continuously with no form feeds or page breaks. Control codes
embedded in the text will be written to the output without
interpretation.
By default, WordFugue prints all pages of the document. You can set
starting and stopping pages if desired.
Select from any of the available printer definition files (default
extension .PDF) to find one that is appropriate for your printer. You
can change to another file and use Options Save setup to regularly use
that file.
You can also choose between sending the printed output to LPT1, LPT2,
LPT3 or to a file. LPT1 etc refer to the computer port where your
printer is attached. If the printer is attached to a serial port, you
must use the DOS MODE command in order to assign the serial port to
one of the print devices LPT1, LPT2 or LPT3. Your choice will be saved
with WordFugue when you Save Setup.
When output is printed to a file, all control codes are written out
just as when they are printed. In this case, you must also specify the
name of the output file using the prompt window.
Set Manual paper feed ON if you wish to have WordFugue prompt you to
insert a new sheet of paper after each page. This choice is also
stored as part of the printer definition file for your selected
printer.
Set Use formfeeds ON if your printer accepts ASCII character #12 to
eject each page. Otherwise, WordFugue will fill out the end of each
page with blank lines.
After making all selections, move the menu bar to the Print file now
item and press <Enter>. If you decide not to print, just press <Esc>.
Printing occurs as a background task. You can continue editing with
minimal loss of performance while the print job continues.
To stop a print job at any time, execute the Print File command
sequence. WordFugue will confirm whether you want to stop the print
job.
You can edit and store printer definitions from within WordFugue,
using the File Print menu.
Select a printer definition file (default extension .PDF) using the
Which printer menu item. WordFugue will load this printer file into
memory.
.tc Dot Commands........................................#
Dot Commands
Dot commands perform a variety of functions, mostly related to
printing. They are also used for table of contents and indexing.
Type a period (dot) in column 1 and follow it with a 2 character
command code and any other information that the command code
requires. It does not matter whether the commands are in upper case
or lower case. Press enter to end the line. The line remains in
your file, but does not appear in the printout.
If you require, the prefix character (dot or period) can be changed
to any special (non alphabetic and non numeric) character. From the
pull down menu, select Options, followed by Load file options, and
then Print format character. You will be prompted for the new
character to use. The new character can be saved so that Word Fugue
will always use the character you have specified. If you do change
the character, it will be used for all printing from that time
forth. IE, you cannot change prefix in mid document.
.cp15
.tc Print formatting Dot Commands.....................#
Print formatting Dot Commands
Include file .FI filename
Offset page to right by n columns .PO n
Start new page .PA
Start new page if fewer than n lines remain .CP n
Start new page if current page number is
Odd or Even .CP O or E
If current page number is Odd or Even, .PB O or E Text
print a blank page with Text centred
on the page.
eg "This page intentionally left blank"
Otherwise, start a new page (like .PA)
Set page number to n .PN n
Omit page numbers .OP
Print page numbers .PG
Put page number in column n .PC n
Set page length to n lines .PL n
Set top margin to n lines .MT n
Set bottom margin to n lines .MB n
Set header margin to n lines .HM n
Set footer margin to n lines .FM n
Start marking text in margin .EV @M1
Stop Marking text in margin .EV @M0
Define header lines
.HE header line 1 } both the
.H1 header line 1 } same
.H2 header line 2
.H3 header line 3
Define footer lines
.FO footer line 1 } both the
.F1 footer line 1 } same
.F2 footer line 2
.F3 footer line 3
Special Codes within Headers and Footers
Insert current page number #
Ignore following spaces on even pages <CtrlP><CtrlK>
Take next character literally \
Invoke printing functions @
- return the time in format:
@T0 HH:MM
@T1 HH:MM:SS
@T2 HH:MM XX where XX = AM or PM
@T3 HH:MM:SS XX where XX = AM or PM
- return the date in format:
@D0 MMM DD, YYYY
@D1 DD/MM/YY
@D2 DD/MM/YYYY
@D3 MM/DD/YY
@D4 MM/DD/YYYY
@D5 YYYY/MM/DD
@D6 DD MMM YYYY
@D7 dayname, DD MMM YYYY
@D8 DD month YYYY
.cp5
- return the name of the file being printed
@F0 full path name\filename
@F1 filename.ext
Set page number type .PT x
where x = N or n - numeric (default)
R - Roman Uppercase
r - roman lowercase
A - Alphabetic uppercase
a - alphabetic lowercase
.tc Printer Format Commands.............................#
Printer Format Commands
You can edit and store printer definitions from within WordFugue,
using the File Print menu. Select a printer definition file
(default extension .PDF) using the Which printer menu item.
WordFugue will load this printer file into memory.
Any of the command sequences that control various printer fonts can
be edited using the Edit printer codes menu selection. Each font is
associated with two strings - one to turn the font ON, and another
to turn it OFF. The sequences are activated by control characters
embedded in the text. These characters can be inserted either by
the special font characters (look in help under Text Attributes) or
by pressing the Control character insertion command (Ctrl K P)
followed by the letter corresponding to the control character.
If font display is on, the text will appear in the color you have
selected for that font. If font display is off, the codes will
appear as alphabetic letters but in a different color from the
text.
The relationship between the order of the sequences in the file and
the codes needed to activate them are as follows:
Initilization - sent to printer before file is printed
Reset - sent to printer after file is printed these others
are sent when a control character is encounterd -
the ON sequence is sent the first time, and the
OFF sequence is sent the second time. (then back
to ON ...)
^B On & Off - usually bold Alt B
^D On & Off - usually double strike Alt D
^S On & Off - usually underline Alt U
^T On & Off - usually superscript Alt T
^V On & Off - usually subscript Alt V
^A On & Off - usually compressed Alt C
^Y On & Off - usually italics Alt I
^C On & Off
^E On & Off
^F On & Off
^G On & Off
^N On & Off
^O On & Off
^P On & Off
^Q On & Off
^R On & Off
^U On & Off
^W On & Off
^X On & Off
The linkage between the control character encountered in the text
and the sequence used is positional as detailed above. Feel free to
define your own meanings for these sequences, but we advise you to
include the activation character and the words ON or OFF in the
name, so that you do not forget what they are. Word Fugue
predefines the names of each sequence, so should you delete the
name of a sequence, word Fugue will show the predefined name.
.tc Editing Printer Sequences ........................#
Editing Printer Sequences
When you choose a sequence to edit, it appears in another window.
It can be edited using the cursor keys, and the <Del> or
<Backspace> keys. Most characters you type will be inserted
literally into the string. <CtrlBksp> will delete the existing
string. <Enter> will end the session in the string editor. In case
you need to enter any of these special keys as part of the control
string, press the <ScrollLock> key to enter Literal mode. In this
mode, all keystrokes will be inserted into the string without
further interpretation.
The printer definition currently held in memory can be stored to a
disk file using the Save printer setup menu item. WordFugue stores
the printer command sequences for all fonts, as well as the default
settings for manual paper feed and formfeeds, when you save the
setup.
WordFugue will prompt for a file name when you decide to store the
current definition. The default extension for printer definitions
is .PDF.